<template>

  <div>
    企业：
    <el-input v-model="input" placeholder="请输入内容"></el-input>
    账号：
    <el-input v-model="input" placeholder="请输入内容"></el-input>
    <el-button type="primary">查询</el-button>
    <el-button type="success">重置</el-button>

    <el-table :data="tableData" border style="width: 100%">
      <el-table-column fixed prop="date" label="hr所属企业" width="150">
      </el-table-column>
      <el-table-column prop="name" label="hr账号" width="120">
      </el-table-column>
      <el-table-column prop="province" label="hr身份" width="120">
      </el-table-column>
  
      <el-table-column fixed="right" label="hr操作" width="100">
        <template slot-scope="scope">
          <el-button @click="handleClick(scope.row)" type="text" size="small">重置密码</el-button>
          <el-button type="text" size="small">封禁hr</el-button>
        </template>
      </el-table-column>
    </el-table>


            <!-- 分页组件：左对齐并距离表格10px -->
    <el-pagination class="pagination-left" background layout="prev, pager, next" :total="1000">
    </el-pagination>
  </div>

</template>

<script>
export default {
  methods: {
    handleClick(row) {
      console.log(row);
    }
  },
  data() {
    return {
      input: '',
       tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1518 弄',
          zip: 200333
        }, {
          date: '2016-05-04',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1517 弄',
          zip: 200333
        }, {
          date: '2016-05-01',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1519 弄',
          zip: 200333
        }, {
          date: '2016-05-03',
          name: '王小虎',
          province: '上海',
          city: '普陀区',
          address: '上海市普陀区金沙江路 1516 弄',
          zip: 200333
        }]
    }
  }
}
</script>

<style>
/* 分页样式保持不变 */
.pagination-left {
  margin-top: 10px;
  text-align: left;
}
</style>